#ifndef INDEX_H
#define INDEX_H

#include <QMainWindow>
#include "illcase.h"
#include "showpatient.h"
#include "showcase.h"
namespace Ui {
class index;
}

class index : public QMainWindow
{
    Q_OBJECT

public:
    explicit index(QWidget *parent = nullptr);
    ~index();
    void setList(illcase a[],int n);
    illcase list[100];
    illcases *l;
    void showPatient(int x,int y);
    void setillcases(illcases *p);
    int selected_Patient;
    void showThisPatient();
    void newPatient();
    void refresh();
    class showPatient *pwin;
private:
    Ui::index *ui;
    void search();
    showCase *cwin;
};

#endif // INDEX_H
